function qryReqequestJob(){
//	alert("qqqq");
	$.ajax({
        type : "post",
        url : 'cfs/patientNumAction!qryHosConsultReturnRate?q='+ Math.random(),
        data : {qryDate:$("#qryDate").val(),qryFunc:$("#qryFunc").val(),selaTar:$("#selatar").val()},
        contentType : "application/x-www-form-urlencoded; charset=gbk",
        dataType : "json", 
        async:true, 
        success : function(result) {
        	$.messager.progress('close');
        	var datas = result;
        	if(datas.length<1) {
        		alert("该医院暂时没有上传数据！");
        	}
        	var legendArr = new Array();
        	var series  = new Array();
        	var dataArr1 = new Array();
    		var dataArr2 = new Array();
    		var dataArr3 = new Array();
    		for(var i = 0;i<datas.length;i++){
    			legendArr[i] = datas[i].dict_name;
//   		    	dataArr[i]=datas[i].count_total;
    			dataArr1[i] = {
   		    			value:datas[i].count_total1,
   		    			name:datas[i].dict_name
   		    	};
   		    	dataArr2[i] = {
   		    			value:datas[i].count_total2,
   		    			name:datas[i].dict_name
   		    	};
   		    	dataArr3[i] = {
   		    			value:datas[i].count_total3,
   		    			name:datas[i].dict_name
   		    	};
//    			series[i] ={
//    					name:datas[i].dict_name,
//    		            type:'pie',
//    		            radius : '50%',
//    		            data:datas[i].count_total
//    			};
    		}
    		var myChart = echarts.init(document.getElementById('bt'));
    		var option = barJobOption(legendArr,dataArr1,dataArr2,dataArr3);
//    		console.log(option);
    		// 使用刚指定的配置项和数据显示图表。
    	    myChart.setOption(option);
        },
        error : function(errorMsg) {
            alert("数据加载失败！");  
        }  
    });
    
}

function barJobOption(legendArr,dataArr1,dataArr2,dataArr3){
	var option = {
			 title : {
			        text: '时间/病种/职业',
			        subtext: '',
			        x:'center'
			    },
			    tooltip : {
			        trigger: 'item',
			        formatter: "{a} <br/>{b} : {c} ({d}%)"
			    },
			    legend: {
			        orient : 'vertical',
			        x : 'left',
			        data:legendArr
			    },
			    toolbox: {
			        show : true,
			        feature : {
			            mark : {show: true},
			            dataView : {show: true, readOnly: false},
			            magicType : {
			                show: true, 
			                type: ['pie', 'funnel'],
			                option: {
			                    funnel: {
			                        x: '25%',
			                        width: '40%',
			                        funnelAlign: 'left',
			                        max: 548
			                    }
			                }
			            },
			            restore : {show: true},
			            saveAsImage : {show: true}
			        }
			    },
			calculable : true,
//		    grid: {
//		        left: '3%',
//		        right: '4%',
//		        bottom: '3%',
//	        containLabel: true
//		    },
//		    series : series
			 series : [
						{
						    name:'2015年:',
						    type:'pie',
						    radius : '55%',
						    center: ['26%', '60%'],
						    data:dataArr1
						},
		              {
		                  name:'2014年:',
		                  type:'pie',
		                  radius : '55%',
		                  center: ['55%', '60%'],
		                  data:dataArr2
		              },
		              {
		                  name:'2013年:',
		                  type:'pie',
		                  radius : '55%',
		                  center: ['85%', '60%'],
		                  data:dataArr3
		              }
		          ]
		      };
	return option;
}


